From: Florian Müllner Date: Fri, 10 Jan 2020 15:09:48 +0000 (+0100) Subject: screenShield: Fix showing shield without animation X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~781^2^2~230 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=ceda02f2da963cb57a704d26c6df7e9df2cac4d6;p=gnome-shell.git screenShield: Fix showing shield without animation Commit 24e631ffe2 changed the shield animation to use translation instead of position. However once the shield is raised, only an animation will lower it again, which means the shield is missing when it's supposed to be shown without animation (for example after an idle blank). Fix this by resetting the translation-y property in that case. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/927 --- diff --git a/js/ui/screenShield.js b/js/ui/screenShield.js index a33a96fae..997ca29f5 100644 --- a/js/ui/screenShield.js +++ b/js/ui/screenShield.js @@ -1025,6 +1025,7 @@ var ScreenShield = class { }, }); } else { + this._lockScreenGroup.translation_y = 0; this._lockScreenGroup.fixed_position_set = false; this._lockScreenShown({ fadeToBlack, animateFade: false }); }